  /**
   * Generate time : 2016-08-18 10:48:49
   * Version : 1.0.1.V20070717
   */
package com.baosight.sczx.zm.cg.domain;

import com.baosight.iplat4j.util.NumberUtils;
import java.math.BigDecimal;
import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;
/**
 * ZMCGPictureShow 
 *  
 */
public class ZMCGPictureShow extends DaoEPBase {

	private String fdYear = " ";		/* 年份*/
	private String fdMonth = " ";		/* 月份*/
	private BigDecimal fdMinesumMsum = new BigDecimal("0");		/* 产量月累计(吨)*/
	private BigDecimal fdMovelenghMsum = new BigDecimal("0");		/* 进尺月累计（米）*/
	private String fdVirtualDate = " ";		/* 调度日期*/
	private String fdMiningId = " ";		/* 矿区ID*/
	/**
	 * initialize the metadata 
	 */
	public void initMetaData() {
		EiColumn eiColumn;
		
	eiColumn = new EiColumn("fdYear");
	eiColumn.setPrimaryKey(true);
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("年份");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMonth");
	eiColumn.setPrimaryKey(true);
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("月份");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMinesumMsum");
	eiColumn.setType("N");
	eiColumn.setScaleLength(2);
	eiColumn.setFieldLength(15);
	eiColumn.setDescName("产量月累计(吨)");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMovelenghMsum");
	eiColumn.setType("N");
	eiColumn.setScaleLength(2);
	eiColumn.setFieldLength(15);
	eiColumn.setDescName("进尺月累计（米）");
	eiMetadata.addMeta(eiColumn);
		
	eiColumn = new EiColumn("fdVirtualDate");
	eiColumn.setFieldLength(10);	
	eiColumn.setDescName("调度日期");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMiningId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("矿区ID");
	eiMetadata.addMeta(eiColumn);

	}
	/**
	 * the constructor
	 */
	public ZMCGPictureShow() {
		initMetaData();
	}
	
	/**
	 * get the fdYear - 年份
	 * @return the fdYear
	 */
	public String getFdYear() {
		return this.fdYear;
	}
	
	/**
	 * set the fdYear - 年份
	 */
	public void setFdYear(String fdYear) {
		this.fdYear = fdYear;
	}
	/**
	 * get the fdMonth - 月份
	 * @return the fdMonth
	 */
	public String getFdMonth() {
		return this.fdMonth;
	}
	
	/**
	 * set the fdMonth - 月份
	 */
	public void setFdMonth(String fdMonth) {
		this.fdMonth = fdMonth;
	}
	/**
	 * get the fdMinesumMsum - 产量月累计(吨)
	 * @return the fdMinesumMsum
	 */
	public BigDecimal getFdMinesumMsum() {
		return this.fdMinesumMsum;
	}
	
	/**
	 * set the fdMinesumMsum - 产量月累计(吨)
	 */
	public void setFdMinesumMsum(BigDecimal fdMinesumMsum) {
		this.fdMinesumMsum = fdMinesumMsum;
	}
	/**
	 * get the fdMovelenghMsum - 进尺月累计（米）
	 * @return the fdMovelenghMsum
	 */
	public BigDecimal getFdMovelenghMsum() {
		return this.fdMovelenghMsum;
	}
	
	/**
	 * set the fdMovelenghMsum - 进尺月累计（米）
	 */
	public void setFdMovelenghMsum(BigDecimal fdMovelenghMsum) {
		this.fdMovelenghMsum = fdMovelenghMsum;
	}	
	/**
	 * get the fdVirtualDate - 调度日期
	 * @return the fdVirtualDate
	 */
	public String getFdVirtualDate() {
		return this.fdVirtualDate;
	}
	
	/**
	 * set the fdVirtualDate - 调度日期
	 */
	public void setFdVirtualDate(String fdVirtualDate) {
		this.fdVirtualDate = fdVirtualDate;
	}
	
	public String getFdMiningId() {
		return fdMiningId;
	}
	public void setFdMiningId(String fdMiningId) {
		this.fdMiningId = fdMiningId;
	}
	/**
	 * get the value from Map
	 */
	public void fromMap(Map map) {
	
		setFdYear(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdYear")), fdYear));
		setFdMonth(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdMonth")), fdMonth));
		setFdMinesumMsum(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdMinesumMsum")), fdMinesumMsum));
		setFdMovelenghMsum(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdMovelenghMsum")), fdMovelenghMsum));
		setFdVirtualDate(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdVirtualDate")), fdVirtualDate));
		setFdMiningId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdMiningId")), fdMiningId));
	}
	
	/**
	 * set the value to Map
	 */
	public Map toMap() {
		
		Map map = new HashMap();
			map.put("fdYear",StringUtils.toString(fdYear, eiMetadata.getMeta("fdYear")));
			map.put("fdMonth",StringUtils.toString(fdMonth, eiMetadata.getMeta("fdMonth")));
			map.put("fdMinesumMsum",StringUtils.toString(fdMinesumMsum, eiMetadata.getMeta("fdMinesumMsum")));	
			map.put("fdMovelenghMsum",StringUtils.toString(fdMovelenghMsum, eiMetadata.getMeta("fdMovelenghMsum")));	
			map.put("fdVirtualDate",StringUtils.toString(fdVirtualDate, eiMetadata.getMeta("fdVirtualDate")));	
			map.put("fdMiningId",StringUtils.toString(fdMiningId, eiMetadata.getMeta("fdMiningId")));
		return map;
	
	}
}